namespace Shape
{
    class Rect : IShape
    {
        private double width;
        private double height;

        public Rect(double width, double height)
        {
            this.width = width;
            this.height = height;
        }

        public override string ToString()
        {
            return $"Rect-> width:{width}, height: {height}";
        }

        public double Area()
        {
            return this.width * this.height;
        }

        public double Perimeter()
        {
            return 2 * (width + height);
        }
    }
}